﻿using ScreenMonitor.ServerLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ServerUI.UIControl
{
    public partial class ClientListView : Control
    {

        #region========构造函数========

        public ClientListView()
        {
            InitializeComponent();
        }

        #endregion

        #region==========属性==========

        /// <summary>
        /// 获取或设置当前显示的客户端的起始索引
        /// </summary>
        public int ClientStartIndex { get; set; }
        /// <summary>
        /// 获取或设置当前显示客户端的个数
        /// </summary>
        public Size ViewClientCount { get; set; }

        #endregion

        protected override void OnPaint(PaintEventArgs pe)
        {
            base.OnPaint(pe);
            ClientObject[] Clients = ClientManager.GetAllClient();
            if(ClientStartIndex>Clients.Count())
            {
                return;
            }
            int dw=this.Width/ViewClientCount.Width, dh=this.Height/ViewClientCount.Height;

        }
    }
}
